﻿<UserControl x:Class="ModernUILogViewer.Pages.ColorSettings"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:mui="http://firstfloorsoftware.com/ModernUI"
             xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
             xmlns:sys="clr-namespace:System;assembly=mscorlib"
             xmlns:model="clr-namespace:ModernUILogViewer.Model"
             xmlns:content="clr-namespace:ModernUILogViewer.Content"
             xmlns:view="clr-namespace:ModernUILogViewer.View"
             xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"                
             xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"                
             DataContext="{Binding Source={StaticResource mainVM}, Path=OptionsVM}"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
             >
    
    <UserControl.Resources>
        
        <!--<XmlDataProvider x:Key="colorsData" XPath="Inventory/LogColors">
            <x:XData>
                <Inventory xmlns="">
                    <LogColors>
                        <LogColor Level="WARN" Value="Yellow"></LogColor>
                        <LogColor Level="ERROR" Value="Red"></LogColor>
                    </LogColors>                        
                </Inventory>
            </x:XData>
        </XmlDataProvider>-->

        <!--<ObjectDataProvider x:Key="levels" 
                        MethodName="GetNames" ObjectType="{x:Type sys:Enum}">
            <ObjectDataProvider.MethodParameters>
                <x:Type TypeName="model:LOG_LEVEL" />
            </ObjectDataProvider.MethodParameters>
        </ObjectDataProvider>-->
        
    </UserControl.Resources>
    
    <Grid Style="{StaticResource ContentRoot}">
        <ScrollViewer>
            <content:ContentColorSettings />
        </ScrollViewer>
    </Grid>
    
    <!--<i:Interaction.Triggers>
        
        <ei:PropertyChangedTrigger Binding="{Binding ElementName=dataGrid, Path=SelectedItem}">
            <ei:ChangePropertyAction TargetObject="{DynamicResource prova}" PropertyName="Color" Value="Black" />
        </ei:PropertyChangedTrigger>
        
    </i:Interaction.Triggers>-->

    <!--<i:Interaction.Triggers>
        <i:EventTrigger EventName="OnNavigatingFrom" >
            <i:InvokeCommandAction Command="{x:Static view:ViewCommands.ShowMessageBox}" CommandParameter="ciao|ci" />
        </i:EventTrigger>
    </i:Interaction.Triggers>-->
    
    
</UserControl>
